package com.mall.product.feign;

import com.common.dto.SkuHasStockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "mall-ware")
public interface WareFeign {
    @PostMapping("ware/waresku/hasStock")
   List<SkuHasStockDTO> getSkuHasStock(@RequestBody List<Long> skuIds);
}
